{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">
  $(document).ready(function() {
    $('#party').focus();
  });
function myFunction()
{
  if(confirm("You Want To Remove This Record")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name=body}
<form name="party" action="{$smarty.server.PHP_SELF}" method="post">
<table align="center" border="0" cellpadding="2" cellspacing="2" >
<tr>
  <td align="center" class="table1" colspan="2">Quenching Media Entry</td>
</tr>
<tr>
  <td class="table2" align="right">Quenching Media</td>
  <td class="table2"><input type="text" name="qMName" autofocus=autofocus required=""required></td>
</tr>
<tr>
  <td class="table1" align="center" colspan="2"><input type="submit" name="insertBtn" value="Submit" class="button" /></td>
</tr>
</table>
</form>
<br><br>
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td  class="table1" align='center' ><B>&nbsp;</td>
	<td  class="table1" align='center' ><B>Quenching Media List</td>
</tr>
{section name="sec" loop=$furArray}
<tr>
  <td class="table2" align="center"><a href="quenchingMediaDelete.php?qMId={$furArray[sec].qMId}" onclick="return myFunction();" class="link"> <img src="./images/deleteIco.png"></a></td>
  <td class="table2" align="left">{$furArray[sec].qMName}</td>
</tr>
{sectionelse}
<tr>
  <td>
   {$msg}
  </td>
</tr> 
{/section}
</table>
{/block}